package com.summer.bean;

import java.util.Objects;

/**
 * Created by IntelliJ IDEA.
 * Description:
 * User: 35391
 * Package: com.summer.pojo
 * Date: 2025/3/24
 * Time: 下午4:55
 * Version: 1.0
 */
public class Lecturer{
    private String Tno;
    private String Tname;
    private String Department;
    private String Address;
    private String Telephone;
    private String Title;
    public Lecturer() {
    }
    public Lecturer(String tno, String tname, String department, String address, String telephone, String title) {
        Tno = tno;
        Tname = tname;
        Department = department;
        Address = address;
        Telephone = telephone;
        Title = title;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Lecturer lecturer = (Lecturer) o;
        return Objects.equals(Tno, lecturer.Tno) && Objects.equals(Tname, lecturer.Tname) && Objects.equals(Department, lecturer.Department) && Objects.equals(Address, lecturer.Address) && Objects.equals(Telephone, lecturer.Telephone) && Objects.equals(Title, lecturer.Title);
    }

    @Override
    public int hashCode() {
        return Objects.hash(Tno, Tname, Department, Address, Telephone, Title);
    }

    @Override
    public String toString() {
        return "Lecturer{" +
                "Tno='" + Tno + '\'' +
                ", Tname='" + Tname + '\'' +
                ", Department='" + Department + '\'' +
                ", Address='" + Address + '\'' +
                ", Telephone='" + Telephone + '\'' +
                ", Title='" + Title + '\'' +
                '}';
    }

    public String getTno() {
        return Tno;
    }

    public void setTno(String tno) {
        Tno = tno;
    }

    public String getTname() {
        return Tname;
    }

    public void setTname(String tname) {
        Tname = tname;
    }

    public String getDepartment() {
        return Department;
    }

    public void setDepartment(String department) {
        Department = department;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String address) {
        Address = address;
    }

    public String getTelephone() {
        return Telephone;
    }

    public void setTelephone(String telephone) {
        Telephone = telephone;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }
}
